<?php 

/**
 * Radcodes - SocialEngine Module
 *
 * @category   Application_Extensions
 * @package    Game
 * @copyright  Copyright (c) 2009-2010 Radcodes LLC (http://www.radcodes.com)
 * @license    http://www.radcodes.com/license/
 * @version    $Id$
 * @author     Vincent Van <vincent@radcodes.com>
 */



return array(
 

  // ------- categories
  array(
    'title' => 'Game Categories',
    'description' => 'Displays a list of game categories (support narrow / wide mode).',
    'category' => 'Games',
    'type' => 'widget',
    'name' => 'game.categories',
    'defaultParams' => array(
      'title' => 'Categories',
      'display_style' => 'narrow',
      'showphoto' => 1,
    ),   
    'adminForm' => array(
      'elements' => array(
        Game_Form_Helper::getContentField('title', array('value' => 'Categories')),
        Game_Form_Helper::getContentField('display_style', array('value' => 'narrow')),
        Game_Form_Helper::getContentField('showphoto'),
        Game_Form_Helper::getContentField('showdescription', array('value' => 0)),
      ),
    ),    
  ), 
  // ------- create new game
  array(
    'title' => 'Submit New Game',
    'description' => 'Displays (Submit New Game) button link.',
    'category' => 'Games',
    'type' => 'widget',
    'name' => 'game.create-new',
  ), 
  // ------- featured games
  
  array(
    'title' => 'Featured Games',
    'description' => 'Displays slideshow of featured games with different filtering options',
    'category' => 'Games',
    'type' => 'widget',
    'name' => 'game.featured-games',
    'defaultParams' => array(
      'title' => 'Featured Games',
    ),  
    'adminForm' => array(
      'attribs' => array(
        'class' => 'game_widget_form'
      ),    
      'elements' => array(
        Game_Form_Helper::getContentField('title', array('value' => 'Featured Games')),
        Game_Form_Helper::getContentField('max', array('value' => 5)),
        Game_Form_Helper::getContentField('order', array('value' => 'random')),
        Game_Form_Helper::getContentField('period'),
        Game_Form_Helper::getContentField('user'),
        Game_Form_Helper::getContentField('keyword'),
        Game_Form_Helper::getContentField('category'),
        Game_Form_Helper::getContentField('distributor_type'),
        Game_Form_Helper::getContentField('content_rating'),
        Game_Form_Helper::getContentField('leaderboard_enabled'),
        Game_Form_Helper::getContentField('showphoto'),
        Game_Form_Helper::getContentField('showdetails'),
        Game_Form_Helper::getContentField('showdescription'),
        Game_Form_Helper::getContentField('showmeta'),                   
      ),
    ),    
  ),  
    
  
  
  // ------- list games
  
  array(
    'title' => 'List Games',
    'description' => 'Displays a list of posted games with different filtering options (can be used to build variety of game listings such as Recent Games, Most Commented with XYZ rating in specified category etc..)',
    'category' => 'Games',
    'type' => 'widget',
    'name' => 'game.list-games',
    'defaultParams' => array(
      'title' => 'Listing Games',
      'display_style' => 'wide',
    ),  
    'adminForm' => array(
      'attribs' => array(
        'class' => 'game_widget_form'
      ),
      'elements' => array(
      
        Game_Form_Helper::getContentField('title', array('value' => 'Listing Games')),
        Game_Form_Helper::getContentField('max', array('value' => 20)),
        Game_Form_Helper::getContentField('order'),
        
        Game_Form_Helper::getContentField('period'),
        Game_Form_Helper::getContentField('user'),
        Game_Form_Helper::getContentField('keyword'),
        Game_Form_Helper::getContentField('category'),
        Game_Form_Helper::getContentField('distributor_type'),
        Game_Form_Helper::getContentField('content_rating'),
        Game_Form_Helper::getContentField('leaderboard_enabled'),

        Game_Form_Helper::getContentField('featured'),
        Game_Form_Helper::getContentField('sponsored'),
        Game_Form_Helper::getContentField('display_style'),
        
        Game_Form_Helper::getContentField('showphoto'),
        Game_Form_Helper::getContentField('showdetails'),
        Game_Form_Helper::getContentField('showdescription'),
        Game_Form_Helper::getContentField('showmeta'),
      
        Game_Form_Helper::getContentField('showemptyresult'),
      ),
    ),    
  ),  
  
  // ------- list scores
  
  array(
    'title' => 'List Scores',
    'description' => 'Displays a list of member submitted game scores (can be filtered by game and user).',
    'category' => 'Games',
    'type' => 'widget',
    'name' => 'game.list-scores',
    'defaultParams' => array(
      'title' => 'Game Scores',
    ),  
    'adminForm' => array(
      'attribs' => array(
        'class' => 'game_widget_form'
      ),
      'elements' => array(
        Game_Form_Helper::getContentField('title', array('value' => 'Game Scores')),
        Game_Form_Helper::getContentField('max', array('value' => 5)),
        Game_Form_Helper::getContentField('order', array('multiOptions' => array(
          'recent' => 'Most Recent',
          'lastupdated' => 'Last Updated',
          'score' => 'Score Descending',
          'score_asc' => 'Score Ascending',
          'random' => 'Randomized',
        ))),
        Game_Form_Helper::getContentField('period'),
        Game_Form_Helper::getContentField('game'),
        Game_Form_Helper::getContentField('user'),
        Game_Form_Helper::getContentField('showemptyresult'),
      ),
    ),    
  ),   
  
  // ------- top menu nav
  array(
    'title' => 'Menu Games',
    'description' => 'Displays main game menu navigation (Browse Games, My Favorite Games).',
    'category' => 'Games',
    'type' => 'widget',
    'name' => 'game.main-menu',
  ), 
  
  // ------- popular tags
  
  array(
    'title' => 'Game Popular Tags',
    'description' => 'Displays game popular tags.',
    'category' => 'Games',
    'type' => 'widget',
    'name' => 'game.popular-tags',
    'defaultParams' => array(
      'title' => 'Popular Tags',
      'order' => 'text',
    ),
    'adminForm' => array(
      'elements' => array(
        Game_Form_Helper::getContentField('title', array('value' => 'Popular Tags')),
        Game_Form_Helper::getContentField('max', array('label' => 'Max Tags')),
        Game_Form_Helper::getContentField('order', array('value' => 'text', 'multiOptions' => array('text' => 'Tag Name','total' => 'Total Count'))), 
        Game_Form_Helper::getContentField('showlinkall'),             
      ),
    ),     
  ),
 

  
  // ========================= GAME PROFILE WIDGETS (game view page) ===========================
  

  // ------- game profile breadcrumb
  array(
    'title' => 'Game Profile - Breadcrumb',
    'description' => 'Displays a game\'s breadcrumb on its profile.',
    'category' => 'Games',
    'type' => 'widget',
    'name' => 'game.profile-breadcrumb',      
  ), 
  
  // ------- game profile comments
  array(
    'title' => 'Game Profile - Comments',
    'description' => 'Displays a game\'s comments on its profile.',
    'category' => 'Games',
    'type' => 'widget',
    'name' => 'game.profile-comments',    
    'defaultParams' => array(
      'title' => 'Comments',
    ),  
    'adminForm' => array(
      'elements' => array(
        Game_Form_Helper::getContentField('title', array('value' => 'Comments')),
      ),
    ),    
  ),
  
  // ------- game profile description
  array(
    'title' => 'Game Profile - Description',
    'description' => 'Displays a game\'s description on its profile.',
    'category' => 'Games',
    'type' => 'widget',
    'name' => 'game.profile-description',    
    'defaultParams' => array(
      'title' => 'Game Description',
    ),  
    'adminForm' => array(
      'elements' => array(
        Game_Form_Helper::getContentField('title', array('value' => '')),
      ),
    ),    
  ), 
  
  // ------- game profile details
  array(
    'title' => 'Game Profile - Details',
    'description' => 'Displays a game\'s details (customized question/field data) on its profile.',
    'category' => 'Games',
    'type' => 'widget',
    'name' => 'game.profile-details',    
    'defaultParams' => array(
      'title' => 'Details',
    ),  
    'adminForm' => array(
      'elements' => array(
        Game_Form_Helper::getContentField('title', array('value' => 'Details')),
      ),
    ),    
  ), 
  
  // ------- game profile favorite
  array(
    'title' => 'Game Profile - Favorite',
    'description' => 'Displays a game\'s favorite button (Add to Favorites).',
    'category' => 'Games',
    'type' => 'widget',
    'name' => 'game.profile-favorite',      
  ),  
  
  // ------- game profile flash player
  array(
    'title' => 'Game Profile - Flash Player',
    'description' => 'Displays a game\'s flash player on its profile.',
    'category' => 'Games',
    'type' => 'widget',
    'name' => 'game.profile-flash-player',      
    'adminForm' => array(
      'elements' => array(
        Game_Form_Helper::getContentField('max_width', array('value' => '700')),
      ),
    ),    
  ),   
  // ------- member profile games
  array(
    'title' => 'Profile Games',
    'description' => 'Displays a member\'s games on their profile.',
    'category' => 'Games',
    'type' => 'widget',
    'name' => 'game.profile-games',
    'defaultParams' => array(
      'title' => 'Games',
    ),  
    'adminForm' => array(
      'attribs' => array(
        'class' => 'game_widget_form'
      ),    
      'elements' => array(
        Game_Form_Helper::getContentField('title', array('value' => 'Games')),
        Game_Form_Helper::getContentField('max', array('value' => 15)),
        Game_Form_Helper::getContentField('order', array('value' => 'recent')),
        Game_Form_Helper::getContentField('period'),
        Game_Form_Helper::getContentField('keyword'),
        Game_Form_Helper::getContentField('category'),
        Game_Form_Helper::getContentField('distributor_type'),
        Game_Form_Helper::getContentField('content_rating'),
        Game_Form_Helper::getContentField('leaderboard_enabled'),
        Game_Form_Helper::getContentField('showphoto'),
        Game_Form_Helper::getContentField('showdetails'),
        Game_Form_Helper::getContentField('showmeta'),                     
      ),
    ),    
  ),
  // ------- game profile icon featured
  array(
    'title' => 'Game Profile - Icon Featured',
    'description' => 'Displays a icon for featured game on its profile.',
    'category' => 'Games',
    'type' => 'widget',
    'name' => 'game.profile-icon-featured',    
    'defaultParams' => array(
      'title' => '',
      'text' => 'FEATURED GAME',
    ),  
    'adminForm' => array(
      'elements' => array(
        Game_Form_Helper::getContentField('title', array('value' => '')),
        Game_Form_Helper::getContentField('text', array('label'=>'Icon Text', 'value' => 'FEATURED GAME')),
        Game_Form_Helper::getContentField('image', array('label' => 'Icon Image URL', 'value' => '')),
      ),
    ),    
  ),
  
  // ------- game profile icon leaderboard
  array(
    'title' => 'Game Profile - Icon Leaderboard',
    'description' => 'Displays an icon for leaderboard enabled game on its profile.',
    'category' => 'Games',
    'type' => 'widget',
    'name' => 'game.profile-icon-leaderboard',    
    'defaultParams' => array(
      'title' => '',
      'text' => 'LEADERBOARD GAME',
    ),  
    'adminForm' => array(
      'elements' => array(
        Game_Form_Helper::getContentField('title', array('value' => '')),
        Game_Form_Helper::getContentField('text', array('label'=>'Icon Text', 'value' => 'LEADERBOARD GAME')),
        Game_Form_Helper::getContentField('image', array('label' => 'Icon Image URL', 'value' => '')),
      ),
    ),    
  ),
  // ------- game profile icon sponsored
  array(
    'title' => 'Game Profile - Icon Sponsored',
    'description' => 'Displays a icon for sponsored game on its profile.',
    'category' => 'Games',
    'type' => 'widget',
    'name' => 'game.profile-icon-sponsored',    
    'defaultParams' => array(
      'title' => '',
      'text' => 'SPONSORED GAME',
    ),  
    'adminForm' => array(
      'elements' => array(
        Game_Form_Helper::getContentField('title', array('value' => '')),
        Game_Form_Helper::getContentField('text', array('label'=>'Icon Text', 'value' => 'SPONSORED GAME')),
        Game_Form_Helper::getContentField('image', array('label' => 'Icon Image URL', 'value' => '')),
      ),
    ),    
  ),  
  
  // ------- game profile info
  array(
    'title' => 'Game Profile - Info',
    'description' => 'Displays a game\'s info (such as description, instructions, controls, tags, custom field data..) on its profile.',
    'category' => 'Games',
    'type' => 'widget',
    'name' => 'game.profile-info',    
    'defaultParams' => array(
      'title' => 'Game Info',
    ),  
    'adminForm' => array(
      'elements' => array(
        Game_Form_Helper::getContentField('title', array('value' => 'Game Info')),
      ),
    ),    
  ),  
  
  // ------- game profile notice
  array(
    'title' => 'Game Profile - Notice',
    'description' => 'Displays a game\'s system notice or message on its profile.',
    'category' => 'Games',
    'type' => 'widget',
    'name' => 'game.profile-notice',       
  ),
  
  // ------- game profile options
  array(
    'title' => 'Game Profile - Options',
    'description' => 'Displays a game\'s action links (Submit New | Edit Game | Delete Game) on its profile.',
    'category' => 'Games',
    'type' => 'widget',
    'name' => 'game.profile-options',       
  ),  
  
  // ------- game profile related games
  array(
    'title' => 'Game Profile - Related Games',
    'description' => 'Displays related games (by tags) on its profile.',
    'category' => 'Games',
    'type' => 'widget',
    'name' => 'game.profile-related-games',    
    'defaultParams' => array(
  	  'titleCount' => true,
      'title' => 'Related Games',
    ),  
    'adminForm' => array(
      'attribs' => array(
        'class' => 'game_widget_form'
      ),
      'elements' => array(
      
        Game_Form_Helper::getContentField('title', array('value' => 'Related Games')),
        Game_Form_Helper::getContentField('max', array('value' => 20)),
        Game_Form_Helper::getContentField('order', array('value' => 'random')),
        
        Game_Form_Helper::getContentField('period'),
        Game_Form_Helper::getContentField('user'),
        Game_Form_Helper::getContentField('keyword'),
        Game_Form_Helper::getContentField('category'),
        Game_Form_Helper::getContentField('distributor_type'),
        Game_Form_Helper::getContentField('content_rating'),
        Game_Form_Helper::getContentField('leaderboard_enabled'),

        Game_Form_Helper::getContentField('featured'),
        Game_Form_Helper::getContentField('sponsored'),
        Game_Form_Helper::getContentField('display_style'),
        
        Game_Form_Helper::getContentField('showphoto'),
        Game_Form_Helper::getContentField('showdetails'),
        Game_Form_Helper::getContentField('showdescription'),
        Game_Form_Helper::getContentField('showmeta'),
      ),
    ),    
  ),  

  
  // ------- game profile scores
  array(
    'title' => 'Game Profile - Scores',
    'description' => 'Displays a game\'s scores on its profile.',
    'category' => 'Games',
    'type' => 'widget',
    'name' => 'game.profile-scores',
    'defaultParams' => array(
      'title' => 'Game Scores',
    ),  
    'adminForm' => array(
      'attribs' => array(
        'class' => 'game_widget_form'
      ),
      'elements' => array(
        Game_Form_Helper::getContentField('title', array('value' => 'Game Scores')),
        Game_Form_Helper::getContentField('max', array('value' => 5)),
        Game_Form_Helper::getContentField('order', array('multiOptions' => array(
          'score' => 'Score Descending',
          'recent' => 'Most Recent',
          'lastupdated' => 'Last Updated',
          'score_asc' => 'Score Ascending',
          'random' => 'Randomized',
        ))),
        Game_Form_Helper::getContentField('period'),
        Game_Form_Helper::getContentField('user'),
        Game_Form_Helper::getContentField('showemptyresult'),
      ),
    ),    
  ),   
    
  
  // ------- game profile social shares
  array(
    'title' => 'Game Profile - Social Shares',
    'description' => 'Displays a game\'s social shares such as Facebook, Twitter, Digg using AddThis service on its profile.',
    'category' => 'Games',
    'type' => 'widget',
    'name' => 'game.profile-social-shares',       
  ),
   
  // ------- game profile stats
  array(
    'title' => 'Game Profile - Stats',
    'description' => 'Displays a game\'s stats (owner, date, rating; various of favorite, view, comment, like counts etc..) on its profile.',
    'category' => 'Games',
    'type' => 'widget',
    'name' => 'game.profile-stats',    
    'defaultParams' => array(
      'title' => 'Game Statistics',
    ),  
    'adminForm' => array(
      'elements' => array(
        Game_Form_Helper::getContentField('title', array('value' => 'Game Statistics')),
      ),
    ),    
  ),


  // ------- game profile title
  array(
    'title' => 'Game Profile - Title',
    'description' => 'Displays a game\'s title (game name; game parent\'s icon, type, and links) on its profile.',
    'category' => 'Games',
    'type' => 'widget',
    'name' => 'game.profile-title',       
  ),
  
  // ------- game profile tools
  array(
    'title' => 'Game Profile - Tools',
    'description' => 'Displays a game\'s tools (Share | Report) on its profile.',
    'category' => 'Games',
    'type' => 'widget',
    'name' => 'game.profile-tools',       
  ),
  
  // ------- search form
  array(
    'title' => 'Search Games',
    'description' => 'Displays search form on game home/browse page.',
    'category' => 'Games',
    'type' => 'widget',
    'name' => 'game.search-form',
  ),   

  // ------- sponsored games
  array(
    'title' => 'Sponsored Games',
    'description' => 'Displays newsticker of sponsored games with different filtering options',
    'category' => 'Games',
    'type' => 'widget',
    'name' => 'game.sponsored-games',
    'defaultParams' => array(
      'title' => 'Sponsored Games',
    ),  
    'adminForm' => array(
      'attribs' => array(
        'class' => 'game_widget_form'
      ),    
      'elements' => array(
        Game_Form_Helper::getContentField('title', array('value' => 'Sponsored Games')),
        Game_Form_Helper::getContentField('max', array('value' => 5)),
        Game_Form_Helper::getContentField('order', array('value' => 'random')),
        Game_Form_Helper::getContentField('period'),
        Game_Form_Helper::getContentField('user'),
        Game_Form_Helper::getContentField('keyword'),
        Game_Form_Helper::getContentField('category'),
        Game_Form_Helper::getContentField('distributor_type'),
        Game_Form_Helper::getContentField('content_rating'),
        Game_Form_Helper::getContentField('leaderboard_enabled'),
        Game_Form_Helper::getContentField('showphoto'),
        Game_Form_Helper::getContentField('showdetails'),
        Game_Form_Helper::getContentField('showdescription'),
        Game_Form_Helper::getContentField('showmeta'),                     
      ),
    ),    
  ),    
  
  
);

